// 体检科室
import axios from "@/utils/axios";

export const getDepartList = (data) => axios.post("/base/depart/page", data);

export const delDepart = (id) =>
  axios.delete(`/base/depart/deleteDepart/${id}`);

export const addOrUpdateDepart = (data) =>
  axios.post(`/base/depart/insertOrUpdate`, data);

// 获取所有科室（带迷糊查询）
export const getAllDept = (keyword) =>
  axios.post("/base/depart/getAllDept", {
    keyword: keyword || "",
  });
